package com.cenwangkeji.resident.model.bean;

import java.util.List;

/**
 * @松 on 2019/10/24 17:13\
 * 健康分类
 */
public class HealthTypeBean {
    /**
     * msg : 操作成功
     * code : 0
     * data : [{"id":142,"name":"女性","value":"3","type":"category","description":"健康咨询分类","sort":3,"parentId":"","createBy":"","createDate":"","updateBy":"","updateDate":"","remarks":"","delFlag":"","choose":""},{"id":141,"name":"慢性病","value":"2","type":"category","description":"健康咨询分类","sort":2,"parentId":"","createBy":"","createDate":"","updateBy":"","updateDate":"","remarks":"","delFlag":"","choose":""},{"id":140,"name":"养生","value":"1","type":"category","description":"健康咨询分类","sort":1,"parentId":"","createBy":"","createDate":"","updateBy":"","updateDate":"","remarks":"","delFlag":"","choose":""},{"id":139,"name":"其他","value":"0","type":"category","description":"健康咨询分类","sort":0,"parentId":"","createBy":"","createDate":"","updateBy":"","updateDate":"","remarks":"","delFlag":"","choose":""}]
     */

    private String msg;
    private int code;
    private List<DataBean> data;

    //清空选中的状态
    public void clearSelect(){
        for (int i=0; i <data.size();i++){
              data.get(i).setIs(false);
        }
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 142
         * name : 女性
         * value : 3
         * type : category
         * description : 健康咨询分类
         * sort : 3
         * parentId :
         * createBy :
         * createDate :
         * updateBy :
         * updateDate :
         * remarks :
         * delFlag :
         * choose :
         */
        private boolean is; //判断是否选中

        public boolean isIs() {
            return is;
        }

        public void setIs(boolean is) {
            this.is = is;
        }

        private int id;
        private String name;
        private String value;
        private String type;
        private String description;
        private int sort;
        private String parentId;
        private String createBy;
        private String createDate;
        private String updateBy;
        private String updateDate;
        private String remarks;
        private String delFlag;
        private String choose;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        public String getCreateBy() {
            return createBy;
        }

        public void setCreateBy(String createBy) {
            this.createBy = createBy;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public String getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(String updateBy) {
            this.updateBy = updateBy;
        }

        public String getUpdateDate() {
            return updateDate;
        }

        public void setUpdateDate(String updateDate) {
            this.updateDate = updateDate;
        }

        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
        }

        public String getDelFlag() {
            return delFlag;
        }

        public void setDelFlag(String delFlag) {
            this.delFlag = delFlag;
        }

        public String getChoose() {
            return choose;
        }

        public void setChoose(String choose) {
            this.choose = choose;
        }
    }
}
